package gov.tax.rti.base.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Transient;

@SuppressWarnings("serial")
@MappedSuperclass
public abstract class AbstractEntity implements ValidFlag,Serializable{
	protected String dm;//代码，唯一标示
	protected int yxbz;//有效标志，大于0=有效
	protected Date qysj;//启用时间
	protected Date sxsj;//失效时间
	protected String bm;//编码，按照业务定义的编码
	protected String mc;//名称
	protected String sy;//索引，用于排序
	
	@Transient
	public String getDm() {
		return dm;
	}
	public void setDm(String dm) {
		this.dm = dm;
	}
	@Column(name = "YXBZ")
	public int getYxbz() {
		return yxbz;
	}
	public void setYxbz(int yxbz) {
		this.yxbz = yxbz;
	}
	@Column(name = "QYSJ",insertable=false)
	public Date getQysj() {
		return qysj;
	}
	public void setQysj(Date qysj) {
		this.qysj = qysj;
	}
	@Column(name = "SXSJ",insertable=false)
	public Date getSxsj() {
		return sxsj;
	}
	public void setSxsj(Date sxsj) {
		this.sxsj = sxsj;
	}
	@Transient
	public String getBm() {
		return bm;
	}
	public void setBm(String bm) {
		this.bm = bm;
	}
	@Transient
	public String getMc() {
		return mc;
	}
	public void setMc(String mc) {
		this.mc = mc;
	}
	@Transient
	public String getSy() {
		return sy;
	}
	public void setSy(String sy) {
		this.sy = sy;
	}
}
